package com.huangwei.model;

import org.springframework.stereotype.Component;

@Component
public class Banner {
    private Integer bannerId;
    private String imgUrl;
    private Car car;

    @Override
    public String toString() {
        return "Banner{" +
                "bannerId=" + bannerId +
                ", imgUrl='" + imgUrl + '\'' +
                ", car=" + car +
                '}';
    }

    public Banner(Integer bannerId, String imgUrl, Car car) {
        this.bannerId = bannerId;
        this.imgUrl = imgUrl;
        this.car = car;
    }

    public Banner() {
    }

    public Integer getBannerID() {
        return bannerId;
    }

    public void setBannerID(Integer bannerId) {
        this.bannerId = bannerId;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }
}
